package com.zjt.service;

import com.zjt.entity.codecenter.*;
import com.zjt.vo.CenterFirmVO;
import java.util.List;
/**
 * Created with IntelliJ IDEA.
 * User: xueyanbeijing
 * Date: 12-8-25
 * Time: AM6:07
 * 物码中心数据接入
 * To change this template use File | Settings | File Templates.
 */
public interface ICodeCenterService {
    /**
     * 根据名称取企业对像
     * @param firmName
     * @return
     */
    public CenterFirmVO getCenterFirmByName(String firmName);
    /**
     * 保存产品数据
     * @param centerProduct
     * @param flag
     * @return
     */
    public CenterProduct saveCenterProduct(String gtin,String itemName,String brandName,String specification,String shortDescription
            ,String description,String height ,String width,String depth ,String netContent,
            String grossWeight,String netWeight,String packagingTypeCode,
            String packagingMaterialCode,String classCode ,String extension,
            String firmName,String address,String firmExtension,int flag);  //保存企业信息表,默认为插入，否则为更新
    /**
     * 通过GTIN码取产品实体
     * @param barCode
     * @return
     */
    public CenterProduct getCenterProductByBarCode(String barCode);

    public List<CenterProduct> getCenterProductListByFirm(String firmName);

    public List<CenterFirmVO> getCenterFirmList();

    public boolean loadCenterDataFromXML(String xmlPath);//通过物码中心的数据接口输入，将来清理至数据库

    public CenterProduct getCenterProduct(String barCode);//通过前扫描输入的条形码，取到条码中心该条码的产品信息表
}
